<?php

// Return json encoded data
header ('Content-type: application/json');

/**
 * Script used to get a list of all the themes from the databse
 */

require_once '../core/db.php';

$sql = "SELECT * FROM siteThemes";
$sth = $db->prepare ($sql);
$sth->execute();
die (json_encode  ($sth->fetchAll (PDO::FETCH_ASSOC)));
?>

